package test2;

public class TestMain {
    public static void main(String[] args) {
        //1231@qq.com
        String str = "132@qq.com";
        if(str.contains("@")&&str.contains(".")){

            System.out.println("是电子邮件");
        }else {
            System.out.println("不是电子邮件");
        }
    }
}
